cc_binary(
    name="benchmark",
    srcs=["benchmark.cpp"],
    linkopts=['-pthread'],
    deps=[
        "//src:TGLine",
        "//src:TGPoint",
        "@benchmark//:main",
    ]
)

cc_binary(
    name="nearest-pair",
    srcs=["nearest-pair.cpp"],
    linkopts=['-pthread'],
    deps=[
        "//src:TGPoint",
        "@opencv//:opencv4",
        "@benchmark//:main",
    ]
)

cc_binary(
    name="point2Polyline",
    srcs=["point2Polyline.cpp"],
    linkopts=['-pthread'],
    deps=[
        "//src:misc",
        "@opencv//:opencv4",
        "@eigen//:eigen3",
        "@benchmark//:main",
    ]
)